package com.mtnz.njk.Mapper;

import com.mtnz.njk.entity.CountCommunityEntity;
import com.mtnz.njk.entity.IntegralEntity;
import com.mtnz.njk.entity.IntegralTypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
* @Description:    商品积分接口
* @Author:         ZPX
* @CreateDate:     2019\7\9 17:50
* @Version:        1.0
*/
@Mapper
public interface IntegralMapper extends tk.mybatis.mapper.common.Mapper<IntegralEntity> {
    // 展示积分商品列表
    List<IntegralEntity> showListIntegral() throws Exception;

    // 积分商品类型列表
    List<IntegralTypeEntity> listIntegralType()throws Exception;

    // 用户兑换积分记录
    List<CountCommunityEntity> getUserIntegralRecord(@Param("userId") String userId) throws Exception;
}
